Skip to content

fix(help): answer help selectors with the selector syntax - #5009

Merged
thymikee merged 1 commit into
callstack:mainfrom
imranbarbhuiya:fix/help-selectors-topic
Nov 23, 2026
Merged

thymikee merged 1 commit into
callstack:mainfrom
imranbarbhuiya:fix/help-selectors-topic

Conversation

@imranbarbhuiya

@imranbarbhuiya imranbarbhuiya commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Agents run help selectors and get Unknown command: selectors followed by the full general help. Selector syntax only lived in one line of help workflow.

help selectors now prints the keys, quoting rules, alternatives and matching rules in 28 lines. The root help, help workflow and the selectors docs page point at it. The topic has first-screen rules and a benchmark case. That case's scorer is tested with passing and failing plans: quoted press, click with find … exists, and press button="Save".

Before / after

$ agent-device help selectors
base a4f2dcad0: Error (INVALID_ARGS): Unknown command: selectors.  (then the general help)
head 9c38be787: agent-device <version> — selectors  (then the selector syntax)

Validation

  • Head 9c38be787, check:affected --run --head, exactCommit: true. Every gate passes except unit, where upload-http-deadline and committed-source-tree fail the same way on clean main on this macOS host. The 28 gates skipped after that pass when run directly, including provider integration and mutation:test.
  • Without the topic, the first-screen and topic-coverage tests fail.
  • The new benchmark case hasn't been scored against a model.

Run Proof on this PR
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

View guided diff

Agents ran help selectors and got Unknown command: selectors plus the
full general help, because selector syntax lived in one line of help
workflow. help selectors now prints the keys, quoting, alternatives, and
matching rules, and the root help, help workflow, and the selectors docs
point at it.
@thymikee

Copy link
Copy Markdown
Member

Thanks for the help topic. The change is ready at 9c38be7, and no conflicts are known. The Smoke Tests failure is in the Install Linux desktop dependencies step (apt-get update did not finish within 30s on 3 attempts), which runs before any repo code and is unrelated to a diff that only touches help text, one benchmark case and a docs page, so a rerun should clear it. The two Body rules runs were cancelled, not failed, and the other checks pass at this head. Not verified here: the head build, agent-device help selectors run locally, the new unit and benchmark-scorer tests (CI unit passes), the Android id= form against the snapshot code, and whether the benchmark case separates real models. Not blocking, and fine to take or leave: the Shape line says One or more key=value terms while a bare boolean key such as checked also parses (line 10); the Keys line lists appname, windowtitle and the three-valued checked without matching rules; the command list names only gesture drag, though gesture pinch takes a selector since #4998; and the prose rules are hand-written in this topic and in selectors.md with no test tying them to the selectors parser, so a follow-up could parse a few rule examples in a help test.

@thymikee thymikee added the ready-for-human Valid work that needs human implementation, judgment, or maintainer merge label Nov 23, 2026
@thymikee
thymikee merged commit 52fde0f into callstack:main Nov 23, 2026
16 of 19 checks passed
@imranbarbhuiya
imranbarbhuiya deleted the fix/help-selectors-topic branch November 23, 2026 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Valid work that needs human implementation, judgment, or maintainer merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants